// main 入口文件
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import Vant,{Lazyload}  from 'vant';
import 'vant/lib/index.css';
// 导入rem适配
import 'lib-flexible/flexible'
import FastClick from 'fastclick'
Vue.use(Lazyload)
// 挂载到Vue的原型对象上l
Vue.prototype.$axios = axios
// 响应拦截
axios.interceptors.response.use(res => {
  return res.data
})

Vue.use(Vant);



axios.defaults.baseURL = 'https://fanhc.xyz/api/public/v1'

Vue.config.productionTip = false
// 解决移动设备点击有延迟问题
FastClick.attach(document.body)
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
